<?php
namespace app\admin\model;
use think\Db;
use think\Model;
class Admin extends Model {
    public function facelist($where){
        $data = array();
//        if ($where){
//            $data = array('a.user_name','like',"%".$where."");
//        }
        //查询用户人脸
        $facelist = Db::table('tp_admin')
                    ->field('a.admin_id,f.createtime,a.user_name,f.group')
                    ->alias('a')
                    ->join('tp_face_openid f ','f.uid= a.admin_id')
                    ->where($data)
                    ->select();
        return $facelist;
    }
}